/*
 * rosa.h
 *
 * Created: 2014-12-03 13:45:00
 *  Author: Andreas Domfors
 */ 


#ifndef ROSA_H_
#define ROSA_H_

/************************************************************************/
/*                    ROSA PUBLIC API                                   */
/************************************************************************/

/// Creates a new task and queues it for execution
int ROSA_taskCreate(char *taskName, void *taskFunction, unsigned int priority,
	unsigned int stackSize);
	
/// Terminates the currently executing task
void ROSA_taskTerminate(void);

/// Starts the scheduler
void ROSA_startScheduler(void);

/// Initializes ROSA. Should be called before calling driver functions
void ROSA_init(void);

#endif /* ROSA_H_ */